package com.frikinet.gestorepub.web.spring.services;

import com.frikinet.gestorepub.model.Author;
import com.frikinet.gestorepub.model.Book;
import com.frikinet.gestorepub.model.Category;
import com.frikinet.gestorepub.model.Editor;
import com.frikinet.gestorepub.model.Serie;
import com.frikinet.gestorepub.model.WebUser;
import com.google.appengine.api.users.User;

public interface PersistenceService
{
	public void saveBook(Book book);
	public void saveAuthor(Author author);
	public void saveCategory(Category category);
	public void saveEditor(Editor editor);
	public void saveSerie(Serie serie);
	public void saveWebUser(WebUser user);
	
	public Book getBook(Long id);
	public Author getAuthor(Long id);
	public Category getCategory(Long id);
	public Editor getEditor(Long id);
	public Serie getSerie(Long id);
	public WebUser getWebUser(User user);
}
